package com.md.yleducationsupervisor

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import com.md.adapter.ChildAdapter
import com.md.adapter.FeedRightAdapter
import com.md.adapter.FeedleftAdapter
import com.md.base.BaseActivity
import com.md.nohttp.Params
import com.scwang.smartrefresh.layout.api.RefreshLayout
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener
import kotlinx.android.synthetic.main.activity_du_dao_suggestions.*
import kotlinx.android.synthetic.main.layout_list.*

//督导建议
class DuDaoSuggestionsActivity : BaseActivity() {
    private var leftadapter: FeedleftAdapter? = null
    private var rightadapter: FeedRightAdapter? = null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_du_dao_suggestions)
        changeTitle("督导建议")
        init()
    }

    fun init() {
        linearLayoutManager = LinearLayoutManager(baseContext)
        linearLayoutManager2 = LinearLayoutManager(baseContext)
        feeddd.layoutManager = linearLayoutManager
        feedlist.layoutManager = linearLayoutManager2
        leftadapter = FeedleftAdapter(baseContext, R.layout.item_feedleft, Params.datas)
        rightadapter = FeedRightAdapter(baseContext, R.layout.item_feedright, Params.datas)
        feeddd.adapter = leftadapter
        feedlist.adapter = rightadapter
    }


}
